﻿<%@ Page Title="Solicitud Impropia" MaintainScrollPositionOnPostback="true" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="solicitudImpropia.aspx.cs"  Inherits="ICE.Vacations.WebASP.solicitudImpropia" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">


    <div id="col-top"></div>
    <div id="col" class="box">
        <form name="solImpropia" id="solImpropia">
            
            <p style="margin-left:20%">
            <asp:label ID="Label9" runat="server">Filtrado por: </asp:label>
            <asp:DropDownList ID="listaCampos" runat="server">
                <asp:ListItem Selected="True" Value="nombre">Nombre</asp:ListItem>
                <asp:ListItem Value="apellido1">Primer Apellido</asp:ListItem>
                <asp:ListItem Value="apellido2">Segundo Apellido</asp:ListItem>
                <asp:ListItem Value="usuario">Usuario</asp:ListItem>
                <asp:ListItem Value="cedula">Cédula</asp:ListItem>
            </asp:DropDownList>

            <asp:TextBox ID="filtro" runat="server" OnTextChanged="filtro_TextChanged"></asp:TextBox>
            </p>

            <asp:Panel runat="server" ScrollBars="Auto">
            <asp:GridView RowStyle-Wrap="true" ID="listaUsuarios" runat="server" AutoGenerateColumns="False" OnRowCommand="listaUsuarios_RowCommand" Width="998px" >
                <Columns>
                    <asp:ButtonField ButtonType="Link" HeaderText="Realizar" text='Solicitar' CommandName="irSolicitud"/>
                    <asp:TemplateField HeaderText="Usuario">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("usuario") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("usuario") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="NotSet" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="NotSet" VerticalAlign="Middle" />
                        
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Cédula">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("cedula") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("cedula") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Nombre">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("nombre") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("nombre") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Apellido1">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("apellido1") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("apellido1") %>'></asp:Label>
                        </ItemTemplate>
                        
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Apellido2">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("apellido2") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("apellido2") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Email">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("email") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("email") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Cod Funcional">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("cod_cf") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label7" runat="server" Text='<%# Bind("cod_cf") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Cod Direccion">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("cod_direccion") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("cod_direccion") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle VerticalAlign="Middle" />
                    </asp:TemplateField>
                </Columns>

                <HeaderStyle BackColor="#155790" BorderColor="#155790" Font-Bold="True" ForeColor="White" />

<RowStyle Wrap="True"></RowStyle>
            </asp:GridView>
            </asp:Panel>

        </form>
        
    
    </div> <!-- /col -->
    <%--<div id="col-bottom"></div>--%>
    
    </asp:Content>

